import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "WriteOff/"
import { getBaseUrls } from "@/utils/appUrl.js"
//获取服务核销需选择服务员工开关
export function GetWriteoffNeedWaiter(data) {
    return http.get({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetWriteoffNeedWaiter",
        data,
    })
}
//核销服务商品核销码
export function GetWriteoffProduct(data) {
    return http.get({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetWriteoffProduct",
        data,
    })
}
//获取可核销商品
export function GetEnableUseCodeList(data) {
    return http.get({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetEnableUseCodeList",
        data,
    })
}
//核销服务商品核销码
export function SubmitWriteoff(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "SubmitWriteoff" + path,
        data,
    })
}
//获取核销记录
export function GetWriteoffRecordPage(data, path) {
    return http.post({
        url: getBaseUrls().baseUrlSupplier + serviceName + "GetWriteoffRecordPage" + path,
        data,
    })
}
